package cn.xd.security.token;

import cn.xd.security.command.WxMIniAppLoginCommand;
import lombok.Getter;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

@Getter
public class CustomerUserWxMiniToken extends UsernamePasswordAuthenticationToken {
    private final String code;
    private final String phoneCode;
    private final String phone;
    private final Long fromId;
    private Integer fromWay = -1;
    private final String name;
    public CustomerUserWxMiniToken(WxMIniAppLoginCommand command) {
        super(command.getPhone(), command.getCode());
        this.name=command.getPhone();
        this.code = command.getCode();
        this.phoneCode = command.getPhoneCode();
        this.phone = command.getPhone();
        this.fromId = command.getFromId();
        this.fromWay = command.getFromWay();
    }


}
